package com.home.manager.common;

public enum ManagerError implements ErrorCode {
    SYSTEM_ERROR("系统异常", 101),
    NO_USER("不存在改用户", 102),
    NO_USER_EXISTS("不存在用户", 103),
    MEMORY_EXCEPTION("存储异常", 201),
    NOT_ADMIN_ACCESS("用户没有admin权限", 301);


    private String msg;
    private Integer code;

    ManagerError(String msg, Integer code) {
        this.msg = msg;
        this.code = code;
    }

    @Override
    public String getMsg() {
        return this.msg;
    }

    @Override
    public Integer getCode() {
        return this.code;
    }
}
